package com.demo.gulimall.cart.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * sku信息
 *
 * @author Chen Yuan
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class SkuInfoVo implements Serializable {
	/** skuId */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long skuId;

	/** spuId */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long spuId;

	/** sku名称 */
	private String skuName;

	/** sku介绍描述 */
	private String skuDesc;

	/** 所属分类id */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long catalogId;

	/** 品牌id */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long brandId;

	/** 默认图片 */
	private String skuDefaultImg;

	/** 标题 */
	private String skuTitle;

	/** 副标题 */
	private String skuSubtitle;

	/** 价格 */
	private BigDecimal price;

	/** 销量 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long saleCount;

}
